package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpDispatchInfoExample.E_EMP_PHOTO;
import static org.jsola.hr.example.EmpDispatchInfoExample.E_ID_CARD;
import static org.jsola.hr.example.EmpDispatchInfoExample.E_NAME;
import static org.jsola.hr.example.EmpDispatchInfoExample.E_PF_CARD;
import static org.jsola.hr.example.EmpDispatchInfoExample.E_PHONE;
import static org.jsola.hr.example.EmpDispatchInfoExample.E_SOC_CARD;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_EMP_PHOTO_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_ID_CARD_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_ID_CARD_NOT_NULL;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_NAME_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_NAME_NOT_NULL;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_PF_CARD_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_PHONE_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.M_SOC_CARD_MAX;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_EMP_PHOTO;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_ID_CARD;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_NAME;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_PF_CARD;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_PHONE;
import static org.jsola.hr.example.EmpDispatchInfoExample.N_SOC_CARD;

/**
 * 派单人员非员工信息
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【派单人员非员工信息】的参数")
@Data
public class EmpDispatchInfoAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_NAME, example = E_NAME, required = true)
    @NotNull(message = M_NAME_NOT_NULL)
    @Length(max = 50, message = M_NAME_MAX)
    private String name;

    @ApiModelProperty(notes = N_PHONE, example = E_PHONE)
    @Length(max = 20, message = M_PHONE_MAX)
    private String phone;

    @ApiModelProperty(notes = N_ID_CARD, example = E_ID_CARD, required = true)
    @NotNull(message = M_ID_CARD_NOT_NULL)
    @Length(max = 32, message = M_ID_CARD_MAX)
    private String idCard;

    @ApiModelProperty(notes = N_EMP_PHOTO, example = E_EMP_PHOTO)
    @Length(max = 255, message = M_EMP_PHOTO_MAX)
    private String empPhoto;

    @ApiModelProperty(notes = N_SOC_CARD, example = E_SOC_CARD)
    @Length(max = 50, message = M_SOC_CARD_MAX)
    private String socCard;

    @ApiModelProperty(notes = N_PF_CARD, example = E_PF_CARD)
    @Length(max = 50, message = M_PF_CARD_MAX)
    private String pfCard;


}

